package com.beans;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

@Controller
public class UserController4 {
    private UserService userService;
     @Resource
    public void setUserService(UserService userService) {
        this.userService = userService;
    }
    public  void sayHi() {
         userService.sayHi();
    }

}
